--[[

        fight_effect.lua
        exported by excel2lua.py
        from file:fight_effect.xlsx

--]]

local _data = {
  [1] = {id = 1,name = '荡魔',class = 'hurtRace',desc = '对魔族怪物伤害提升20%',param = 200,param2 = '2.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [2] = {id = 2,name = '怒火',class = 'roundHurt',desc = '战斗进行到4回合全体友方攻击力提升80%',param = 800,param2 = '',trigger = 1,tParam = 4,delete = 1,effect = '攻击提升',arrow = 1,},
  [3] = {id = 3,name = '魅心',class = 'sexHurt',desc = '对男性敌方造成伤害提升20%',param = 200,param2 = '1.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [4] = {id = 4,name = '愚昧',class = 'yumeiDeBuff',desc = '战斗开始时对敌方全体武将施加愚昧效果，造成伤害减少20%,持续2回合',param = 200,param2 = '',trigger = 1,tParam = 1,delete = 1,effect = '伤害减少',arrow = 2,},
  [5] = {id = 5,name = '人族之心',class = 'raceBuff',desc = '每个人族友方提升同族友方5%造成的伤害',param = 50,param2 = '1.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [6] = {id = 6,name = '魔族之心',class = 'raceBuff',desc = '每个魔族友方提升同族友方5%造成的伤害',param = 50,param2 = '2.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [7] = {id = 7,name = '妖族之心',class = 'raceBuff',desc = '每个妖族友方提升同族友方5%造成的伤害',param = 50,param2 = '4.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [8] = {id = 8,name = '仙族之心',class = 'raceBuff',desc = '每个仙族友方提升同族友方5%造成的伤害',param = 50,param2 = '3.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [9] = {id = 9,name = '蛋碎',class = 'sheildBroken',desc = '友方护盾被击破时对随机敌方进行一次普通攻击（每回合最多触发三次）',param = 0,param2 = '0.0',trigger = 2,tParam = 0,delete = 0,effect = '追击',arrow = 3,},
  [10] = {id = 10,name = '协助',class = 'helpAttack',desc = '友方释放技能时对随机敌方进行一次普通攻击（每回合触发一次）',param = 1,param2 = '0.0',trigger = 3,tParam = 0,delete = 0,effect = '追击',arrow = 3,},
  [11] = {id = 11,name = '净体',class = 'clearDebuff',desc = '战斗进行到3回合所有友方单位免疫一切负面效果，持续2回合',param = 0,param2 = '0.0',trigger = 1,tParam = 3,delete = 1,effect = '免疫',arrow = 3,},
  [12] = {id = 12,name = '虔诚',class = 'piety',desc = '虔诚者不易被扰乱身心，混乱抵抗提升50%',param = 500,param2 = '0.0',trigger = 1,tParam = 1,delete = 1,effect = '混乱抵抗',arrow = 3,},
  [13] = {id = 13,name = '沙场',class = 'shaChang',desc = '每个男性武将提升全体友方3%造成伤害',param = 30,param2 = '1.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [14] = {id = 14,name = '只攻不守',class = 'justAttack',desc = '防御减少100%，造成的伤害提升100%',param = 1000,param2 = '1000.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [15] = {id = 15,name = '破势',class = 'poShi',desc = '战斗进行到4回合，全体敌方防御降低50%（持续3回合）',param = 500,param2 = '100.0',trigger = 1,tParam = 4,delete = 1,effect = '防御降低',arrow = 2,},
  [16] = {id = 16,name = '恫吓',class = 'dongHe',desc = '战斗开始时对全体敌方施加恫吓效果，30%概率无法行动，持续3回合',param = 300,param2 = '100.0',trigger = 1,tParam = 1,delete = 1,effect = '畏惧',arrow = 2,},
  [17] = {id = 17,name = '知识',class = 'knowledge',desc = '元素攻击伤害提升30%',param = 300,param2 = '0.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [18] = {id = 18,name = '烈焰',class = 'fireHurt',desc = '火属性法术伤害提升50%',param = 500,param2 = '0.0',trigger = 1,tParam = 1,delete = 1,effect = '伤害提升',arrow = 1,},
  [19] = {id = 19,name = '坚盾',class = 'jianDun',desc = '血量低于20%附加一个吸收5000点伤害的强力护盾',param = 5000,param2 = '0.0',trigger = 4,tParam = 1,delete = 1,effect = '护盾',arrow = 3,},
  [20] = {id = 20,name = '免伤盾',class = 'mianshangDun',desc = '受到致命伤时附加一个免疫一切伤害的强力护盾，持续到回合结束破碎时回复20%血量',param = 200,param2 = '0.0',trigger = 4,tParam = 1,delete = 1,effect = '护盾',arrow = 3,},
  [21] = {id = 21,name = '收割',class = 'shouGe',desc = '对生命值低于20%的敌方造成伤害时，直接使其死亡',param = 200,param2 = '1.0',trigger = 5,tParam = 1,delete = 1,effect = '收割',arrow = 2,},
  [22] = {id = 22,name = '正义之盾',class = 'zhengyiDun',desc = '战斗进行到2回合，获得一个吸收3000点伤害的强力护盾，护盾破碎时吸收的伤害50%转化为血量',param = 3000,param2 = '500.0',trigger = 1,tParam = 2,delete = 1,effect = '护盾',arrow = 3,},
  [23] = {id = 23,name = '同生共死',class = 'shareHurt',desc = '好兄弟同生共死，拥有相同效果友方伤害进行分摊',param = 13,param2 = '0.0',trigger = 6,tParam = 1,delete = 0,effect = '共死',arrow = 3,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
   [8] = 8,
   [9] = 9,
   [10] = 10,
   [11] = 11,
   [12] = 12,
   [13] = 13,
   [14] = 14,
   [15] = 15,
   [16] = 16,
   [17] = 17,
   [18] = 18,
   [19] = 19,
   [20] = 20,
   [21] = 21,
   [22] = 22,
   [23] = 23,
}

local fight_effect={}

function fight_effect.length() 
   return #_data 
end 

function fight_effect.indexOf(index) 
   return _data[index] 
end 

function fight_effect.get(id) 
  return fight_effect.indexOf(id_to_index[id])
end 

return fight_effect